/*
 * Lenovo Group
 * Copyright (c) 2015-2016 All Rights Reserved.
 * 
 * Project Name:itsm-gateway
 * Create Time: 2016年2月4日 下午9:35:43
 */
package com.lenovo.lmrp.server.itsmgateway.domain.ticket;

import java.util.List;

import com.lenovo.lmrp.api.model.entity.AttachmentPO;
import com.lenovo.lmrp.api.model.entity.TicketPO;
import com.lenovo.lmrp.api.model.entity.TicketPartsPO;
import com.lenovo.lmrp.api.model.entity.TicketSLAPO;
import com.lenovo.lmrp.api.model.view.AttachmentVO;

/**
 * 
 * @author wujin
 * @version v1.0
 */
public interface ITicketRepository {
    
    public boolean storeSyncTicket(String itsmCode, TicketPO ticketPO);
    
    public void storeTicketAttachment(String itsmCode, AttachmentPO attachmentPO);
    
    public AttachmentBO createAttachmentBO(String itsmCode, String attacmentID);
    
    public AttachmentBO createAttachmentBO(String itsmCode, String ticketid, AttachmentVO attachmentVO);
    
    public AttachmentBO createAttachmentBO(String itsmCode, AttachmentPO attachmentPO);
    
    public TicketBO createTicketBO(String itsmCode, String ticketID);
    
    public TicketBO createTicketBOWithExtense(String itsmCode, String ticketID);
    
    public void storeTicketParts(String itsmCode, List<TicketPartsPO> ticketPartsList);
    
    public void storeTicketWithExtense(String itsmCode, TicketPO ticketPO);
    
    public void storeTicketSLA(String itsmCode, String ticketid);

    public TicketPO getTicketPO(String itsmCode,String ticketid);
    
    public void storeTicketOnlyExtense(String itsmCode,TicketPO ticketPO);
}
